package yj.study;

import java.io.IOException;
import java.util.logging.FileHandler;
import java.util.logging.Logger;

public class FileHandlerTest {
	private FileHandler handler = null;
	private Logger logger = Logger.getLogger("yj.study.FileHandlerTest");
	public FileHandlerTest(String name){
		try{
			handler = new FileHandler();
			logger.addHandler(handler);
		}catch(IOException e){
			
		}
	}
	
	public static void main(String[] args){
		new FileHandlerTest("yang");
	}
/**
 * 这个文件在/home/inc/目录下面生成了一个java0.log的文件，内容如下：
 * <?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!DOCTYPE log SYSTEM "logger.dtd">
<log>
</log>
*/
	 
}
